<form class="form-horizontal row border-bottom white-bg page-heading">
	<div class="form-group">
		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.customerId"]} :</label>
			<label for="namebasic" class="control-label">${customer.id!}</label>
		</div>

		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.customerName"]} :</label>
			<label for="namebasic" class="control-label">${customer.firstname!}${customer.middlename!}${customer.lastname!}</label>
		</div>
	</div>
	
	<div class="form-group">
		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.FIRB"]} :</label>
			<label for="namebasic" class="control-label"><#dict type="lable" value='${orderItem.firb!}' dictCode="FOREIGN_INVESTORS"/></label>
		</div>

		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.projectId"]} :</label>
			<label for="namebasic" class="control-label">${project.id!}</label>
		</div>
	</div>

	<div class="form-group">
		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.projectName"]} :</label>
			<label for="namebasic" class="control-label">${project.projectname!}</label>
		</div>

		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.homeType"]} :</label>
			<label for="namebasic" class="control-label"><#dict type="lable"  value="${orderItem.projecttype!}"  dictCode="PROJECT_TYPE" /></label>
		</div>
	</div>
	
	<div class="form-group">
		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.price"]} :</label>
			<% if (!isEmpty(orderItem.price)) { %>
				<!-- 对数据四舍五入 -->
				<% var priceNew = trunc(orderItem.price!,2);%>
				<label for="namebasic" class="control-label">${priceNew!}</label>
			<% } %>
		</div>
		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.buildingno"]} :</label>
			<label for="namebasic" class="control-label">${orderItem.buildingno!}</label>
		</div>
	</div>
	
	<div class="form-group">
		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.floorno"]} :</label>
			<label for="namebasic" class="control-label">${orderItem.floorno!}</label>
		</div>
		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.unitno"]} :</label>
			<label for="namebasic" class="control-label">${orderItem.lotno!}</label>
		</div>
	</div>
	
	<div class="form-group">
		<div class="col-md-6">	
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.bedrooms"]} :</label>
			<label for="namebasic" class="control-label">${orderItem.bedrooms!}</label>
		</div>
		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.toilets"]} :</label>
			<label for="namebasic" class="control-label">${orderItem.bathrooms!}</label>
		</div>
	</div>
	
	<div class="form-group">
		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.parkings"]} :</label>
			<label for="namebasic" class="control-label">${orderItem.carparks!}</label>
		</div>
		
		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.studyrooms"]} :</label>
			<label for="namebasic" class="control-label">${orderItem.studyrooms!}</label>
		</div>
	</div>
	
	<div class="form-group">
		<div class="col-md-6">	
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.closets"]} :</label>
			<label for="namebasic" class="control-label">${orderItem.storages!}</label>
		</div>
		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.orientation"]} :</label>
			<label for="namebasic" class="control-label">${orderItem.aspect!}</label>
		</div>
	</div>
	
	<div class="form-group">
		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.totalArea"]} :</label>
			<% if (!isEmpty(orderItem.totalarea)) { %>
				<% var totalareaNew = trunc(orderItem.totalarea!,2);%>
				<label for="namebasic" class="control-label">${totalareaNew!}㎡</label>
			<% } %>
		</div>
		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.internalarea"]} :</label>
			<% if (!isEmpty(orderItem.internalarea)) { %>
				<% var internalareaNew = trunc(orderItem.internalarea!,2); %>
				<label for="namebasic" class="control-label">${internalareaNew!}㎡</label>
			<% } %>	
		</div>
	</div>
	<div class="form-group">
		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.externalarea"]} :</label>
			<% if (!isEmpty(orderItem.externalarea)) { %>
				<% var externalareaNew = trunc(orderItem.externalarea!,2); %>
				<label for="namebasic" class="control-label">${externalareaNew!}㎡</label>
			<% } %>
		</div>
		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.startTime"]} :</label>
			<label for="namebasic" class="control-label">${orderItem.constructiondate!,dateFormat="yyyy-MM-dd"}</label>
		</div>
	</div>

	<div class="form-group">
		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.launchTime"]} :</label>
			<label for="namebasic" class="control-label">${orderItem.settledate!,dateFormat="yyyy-MM-dd"}</label>
		</div>

		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.examinationAndApproval"]} :</label>
			<label for="namebasic" class="control-label"><#dict type="lable" value='${project.status!}' dictCode="REVIEW_STATUS"/></label>
		</div>
	</div>

	<div class="form-group">
		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.downPaymentRatio"]} :</label>
			<% if (!isEmpty(orderItem.downpayratio)) { %>
				<% var downPaymentRatioNew = trunc(orderItem.downpayratio!,2); %>
				<label for="namebasic" class="control-label">${downPaymentRatioNew!}%</label>
			<% } %>
		</div>
		
	 

	<div class="form-group">
		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.preference"]} :</label>
			<label for="namebasic" class="control-label">${orderItem.preferredlots!}</label>
		</div>
		
		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.supporting"]} :</label>
			<label for="namebasic" class="control-label">${orderItem.localamenity!}</label>
		</div>
	</div>

	<div class="form-group">
		<% for (orderAddress in orderAddressList){ %>
			<div class="col-md-6">
				<% if(1==orderAddress.type!) { %>
					<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.contractAddress"]} :</label>
				<% } else { %>
					<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.mailingAddress"]} :</label>
				<% } %>
				<label for="namebasic" class="control-label">
						<#dict type="lable" value='${orderAddress.country!}' table="country_region" filedName="name" filedValue="id"/>&nbsp;
						<#dict type="lable" value='${orderAddress.state!}' table="country_region_state" filedName="name" filedValue="id"/>&nbsp;
						<#dict type="lable" value='${orderAddress.city!}' table="country_region_city" filedName="name" filedValue="id"/>&nbsp;
						${orderAddress.address1!}&nbsp;${orderAddress.address2!}&nbsp;${orderAddress.zip!}
				</label>
			</div>
		<% } %>
	</div>
	
	<div class="form-group">
		<div class="col-md-6">
			<label for="namebasic" class="col-md-4 control-label">${_res["order.detail.instructions"]} :</label>
			<label for="namebasic" class="control-label">${orderItem.otherinfo!}</label>
		</div>
	</div>
</form>

<div class="ibox row border-bottom white-bg page-heading">
	<div class="ibox-content">
		<div class="ibox-content" id="listDiv">
			<div class="form-group">
				<label for="namebasic" class="col-md-2 control-label">${_res["order.detail.operatorlog"]}</label>
			</div>
			<table class="table table-bordered table-hover" id="list-table">
				<thead>
					<tr>
						<th>${_res["order.detail.processDate"]}</th>
						<th>${_res["order.detail.processcontent"]}</th>
						<th>${_res["order.detail.processor"]}</th>
					</tr>
				</thead>
				<tbody>
					 <% for(audit in orderAudit!){ %>
          	<tr>
          	<td style="padding: 0px;height:auto;" class="ren_two_li"><p class="ren_two_pp ren_two_pb">${audit.actiondtm!}</p></td>
          	<td style="padding: 5px;" class="ren_two_kp"><p class="ren_two_pc">
          	    			<%if(audit.actionid! !=null){
                            switch(audit.actionid!){
                            		case 1100:
              							%>
          							    ${_res["order.process.CreateOrder"]}
              							<%				  
              							break;
                            		case 1110:
              							%>
          							    ${_res["order.process.paymentIntention"]}
              							<%				  
              							break;
              						case 1111:
              							%>
          							    ${_res["order.process.AcknowledgeReceipt"]}
              							<%				  
              							break;
              						case 1112:
        							%>
              					${_res["order.process.Confirmationtransactionunit"]}
             							  <%	
             							  break;
                            		case 1120:
      							  	%>
          							    ${_res["order.process.uploadContract"]}
              						<%	 
              							  break;
             						case 1130:
             						%>
              					${_res["order.process.SelectConsultant"]}
             							 <%  
             							  break;
             						case 1140:
             						%>
          						${_res["order.process.Interpretationofcontracts"]}
              							<% 
              							  break;
              						case 1141:
              						%>
          							  ${_res["order.process.Contractexchangeuploadscan"]}
              							<% 
              							  break;
              						case 1180:
              						%>
          							  ${_res["order.process.Paymentofthefirstpayment"]}
              							 <% 
              							  break;
             						case 1200:
             						%>
              							${_res["order.process.Uploadlease"]}
             							   <% 
             							  break;
             						case 1201:
										%>             						
              						${_res["order.process.ApplyFIRB"]}
             							  <% 
             							  break;
             						case 1205:
             							%>
              							${_res["order.process.Uploadstampduty"]}
             							 <% 
             							  break;
             						case 1215:
             						%>
              					${_res["order.process.applyforloan"]}
             							 <% 
             							  break;
             						case 1230:
             						%>
              					${_res["order.process.Loanapproval"]}
             							 <%
             							  break;
             						case 1231:
             						%>
              					${_res["order.process.ChoosethewayhomeInspection"]}
             							   <%
             							  break;
             						case 1232:
             							  %>
              							${_res["order.process.Uploadinspector"]}
              							<%
             							  break;
             						case 1240:
             						 %>
              							 ${_res["order.process.Therestofthefirstpaymenttoupload"]}
             							<%
             							  break;
             						case 1241:
             						 %>
              						${_res["order.process.Others"]}
             							 <%
             							  break;
             						case 1280:
             						 %>
              					${_res["order.process.Purchaseofhousing"]}
             							   <%
             							  break;
             						case 1281:
             						%>
              					${_res["order.process.Selectlease"]}
             							  <%
             							  break;
             						case 1285:
             						%>
              						${_res["order.process.Enterahouselease"]}
             							  <%
             							  break;
             						case 1290:
             						%>
              				${_res["order.process.BuildingmaterialsdepreciationReport"]}
             							 <%
             							  break;
             						case 1300:
             						%>
              				${_res["order.process.Realestateappreciation"]}
             							 <%
             							  break;
                            		default:
                            	}
                            }
                            %>
          	</p></td>
          	<td style="padding: 1px;" class="ren_two_kp"><p class="ren_two_pc">${audit.firstname!}&nbsp;${audit.lastname}</p></td>
          	</tr>
          	 <% } %> 
				</tbody>
			</table>
		</div>
		<div class="ibox-content">
			<label for="namebasic" class="col-md-2 control-label"> 
			<% if(hasPrivilegeUrl("/admin/order/getOrderList")){ %> 
				<a class="btn btn-primary " href="javascript:void(0)"
					onClick="ajaxContent('/admin/order/getOrderList/toUrl?toUrl=/realty/order/orderList.html');">${_res["common.return"]}
				</a> 
			<% } %>
			</label>
		</div>
	</div>
</div>